<?php

/*
 接口名称：/erpStudent/add
 接口描述：新增学员
*/

//获取参数
$osw_oesid               = $route->bodyParams['osw_oesid'];
$osw_title               = $route->bodyParams['osw_title'];
$osw_oaid                = $route->bodyParams['osw_oaid'];
$osw_start_time          = $route->bodyParams['osw_start_time'];
$osw_end_time            = $route->bodyParams['osw_end_time'];
$osw_price               = $route->bodyParams['osw_price'];
$osw_image               = $route->bodyParams['osw_image'];
$osw_type               = $route->bodyParams['osw_type'];

//写入数组
$insertArr = [
    'osw_oesid'          => $osw_oesid ,
    'osw_title'          => $osw_title,
    'osw_oaid'           => $osw_oaid,
    'osw_start_time'    => $osw_start_time,
    'osw_end_time'       => $osw_end_time,
    'osw_price'           => $osw_price,
    'osw_type'           => $osw_type,
    'osw_image'           => $osw_image,
    'osw_create_time'    => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_welfare",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );